// vlcrtsp.h
#ifndef VLCRTSP_H
#define VLCRTSP_H

#include <QWidget>
#include <vlc/vlc.h>

class VLCRTSP : public QWidget
{
    Q_OBJECT
public:
    explicit VLCRTSP(QWidget *parent = nullptr);
    ~VLCRTSP();

    void playRTSP(const QString &url);
    void stop();
    void closePlayer();

private:
    libvlc_instance_t *m_vlcInstance = nullptr;
    libvlc_media_player_t *m_player = nullptr;
};

#endif // VLCRTSP_H
